package com_.dxy_test_.thread_;

/**
 * @Description 中断测试
 * @Author dangxianyue
 * @Date 2023/5/12 0:09
 */
public class InterruptTest {

    public static void main(String[] args) {
        Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                while (true) {
                    System.out.println(1);
                }
            }
        });
        t.start();
        System.out.println("start");
        t.interrupt();
    }
}
